package com.ww.springboot.es.app.arthas.svc.impl;

import cn.hutool.core.math.MathUtil;
import com.ww.springboot.es.app.arthas.dto.ArthasDto;
import com.ww.springboot.es.app.arthas.svc.IArthasSvc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Random;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2025-08-30 09:15
 */
@Service
@Slf4j
public class ArthasSvcImpl implements IArthasSvc {

    private static final String TEST_STR = "test_str";
    public static Integer TEST_INTEGER = 1;
    private static ArthasDto arthasDto;

    @Override
    public void test() throws InterruptedException {
        Thread.sleep(1000);
        System.out.println(TEST_STR);
        System.out.println(TEST_INTEGER);
        arthasDto = new ArthasDto();
        arthasDto.setStr("test_str");
        arthasDto.setL(MathUtil.arrangementCount(5,5));
    }

    @Override
    public Object test2(Object o) throws InterruptedException {
        Thread.sleep(1000);
        return o;
    }

    @Override
    public Object test3(Object o) throws InterruptedException {
        Thread.sleep(1000);
        test();
        test2(o);
        return null;
    }
}
